// 流程实例管理接口

// 流程激活
const activateProcessInstance = (params) =>
  $http.post(`${window.RPConfig.task}processManagement/activateProcessInstance`, params)

// 流程实例列表查询
const processInstanceList = (params) =>
  $http.post(`${window.RPConfig.task}processManagement/processInstanceList`, params)

// 终止流程实例
const stopProcessInstance = (params) =>
  $http.post(`${window.RPConfig.task}processManagement/stopProcessInstance`, params)

// 流程挂起
const suspendProcessInstance = (params) =>
  $http.post(`${window.RPConfig.task}/processManagement/suspendProcessInstance`, params)

export {
  activateProcessInstance,
  processInstanceList,
  stopProcessInstance,
  suspendProcessInstance
}
